package com.api.shopapi.service;

import com.api.shopapi.entity.Message;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface MessageService {

    public int insert(@Param("message") Message message);

    public int deleteByMessageCode(@Param("messageCode") String messageCode);

    public int updateByMessageCode(@Param("message") Message message);

    public List<Message> getList();

    public Message getByMessageCode(@Param("messageCode") String messageCode);

    PageInfo<Message> getPageInfo(int pageNum, int pageSize);
}
